use tauri::Wry;

mod log;
mod service;
mod settings;
mod update;

pub fn setup_handler(builder: tauri::Builder<Wry>) -> tauri::Builder<Wry> {
    builder.invoke_handler(tauri::generate_handler![
        settings::save_settings,
        settings::load_settings,
        service::start_service,
        service::stop_service,
        service::info_service,
        service::start_all_service,
        service::stop_all_service,
        update::check_update,
        update::download,
        log::open_log_file,
    ])
}
